package cn.zhiwen.service;

import cn.zhiwen.service.fallback.HelloFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

//需要调用接口的服务名
@FeignClient(name="springClient01",fallback =HelloFallback.class )
public interface HelloService {
    @RequestMapping("hello")
    public String hello();

}

